/**
 * 
 */
package cn.com.innodev.withyou.business.api.noti;

import com.vanstone.common.lang.BaseEnum;

/**
 * @author shipeng
 *
 */
public enum NotiLevel implements BaseEnum<Integer> {

  Warn("警告", 1), Info("信息", 2), Error("错误", 10);

  private String desc;
  private Integer code;

  private NotiLevel(String desc, Integer code) {
    this.desc = desc;
    this.code = code;
  }

  @Override
  public Integer getCode() {
    return this.code;
  }

  @Override
  public String getDesc() {
    return this.desc;
  }

}
